import request from '@/utils/request'
// 批量修改商品状态
export function batchUpdateStatus(data) {
  return request({
    url: '/v1/goods/batch-edit-status',
    method: 'post',
    data
  })
}
//批量修改报关信息
export function batchUpdateCustoms(data) {
  return request({
    url: '/v1/goods/batch-sku-custom',
    method: 'post',
    data
  })
}
//批量修改产品分类
export function batchUpdateCategory(data) {
  return request({
    url: '/v1/goods/batch-spu-category',
    method: 'post',
    data
  })
}
//批量修改spu数据
export function batchUpdateSpu(data) {
  return request({
    url: '/v1/goods/batch-spu-info',
    method: 'post',
    data
  })
}
//批量修改认证状态
export function batchUpdateAuth(data) {
  return request({
    url: '/v1/goods/batch-sku-auth',
    method: 'post',
    data
  })
}
// 合并spu
export function mergeSPU(data) {
  return request({
    url: '/v1/goods/spu/merge-spu',
    method: 'POST',
    data
  })
}
//获取默认供应商
export function getSupplier(data) {
  return request({
    url: '/v1/goods/supplier/default',
    method: 'POST',
    data
  })
}
//批量修改默认供应商
export function batchUpdateSupplier(data) {
  return request({
    url: '/v1/goods/batch-default-supplier',
    method: 'POST',
    data
  })
}
//批量上传认证证书
export function batchUploadAuth(data) {
  return request({
    url: '/v1/goods/batch-certificate',
    method: 'POST',
    data
  })
}
//批量上传专利证书
export function batchUploadPatent(data) {
  return request({
    url: '/v1/goods/batch-patent',
    method: 'POST',
    data
  })
}
//批量上传产品说明书
export function batchUploadManual(data) {
  return request({
    url: '/v1/goods/batch-specification',
    method: 'POST',
    data
  })
}
//批量修改产品标识
export function batchUpdateMark(data) {
  return request({
    url: '/v1/goods/batch-identification',
    method: 'POST',
    data
  })
}
//批量修改人员信息
export function batchUpdatePerson(data) {
  return request({
    url: '/v1/goods/batch-edit-user',
    method: 'POST',
    data
  })
}

//批量修改禁售平台站点
export function batchUpdateProhibited(data) {
  return request({
    url: '/v1/goods/batch-edit-prohibited',
    method: 'POST',
    data
  })
}

//批量修改推荐平台站点
export function batchUpdateRecommend(data) {
  return request({
    url: '/v1/goods/batch-edit-recommend',
    method: 'POST',
    data
  })
}

//批量修改供应商采购数量
export function batchUpdatePurchase(data) {
  return request({
    url: '/v1/goods/batch-supplier-purchase',
    method: 'POST',
    data
  })
}

//批量修改重量尺寸
export function batchUpdateWeightSize(data) {
  return request({
    url: '/v1/goods/batch-weight-size',
    method: 'POST',
    data
  })
}

//sku报关数据
export function getSKUCustomList(data) {
  return request({
    url: '/v1/goods/sku/sku-custom-list',
    method: 'POST',
    data
  })
}

// 获取辅料列表
export function getSKUAccessories(data) {
  return request({
    url: '/v1/goods/sku/sku-accessories',
    method: 'post',
    data
  })
}

// 批量修改申报要素
export function batchDeclareElement(data) {
  return request({
    url: '/v1/goods/batch-operation/batch-declare-element',
    method: 'post',
    data
  })
}

// 批量推送跨境兴运
export function batchPushToxingyun(data) {
  return request({
    url: '/v1/goods/batch-operation/push-to-xing-yun',
    method: 'post',
    data
  })
}

// sku批量下载
export function batchImgDownload(data) {
  return request({
    url: '/v1/base/img-download-task/create-by-sku',
    method: 'post',
    data
  })
}

// 商品SKU列表
export function querySkuList(data) {
  return request({
    url: '/v1/goods/sku/list',
    method: 'POST',
    data
  })
}

// 批量上传检测结果
export function batchUploadInspection(data) {
  return request({
    url: '/v1/goods/batch-operation/upload-inspection',
    method: 'POST',
    data
  })
}

// 获取基础-店铺详情
export function getShopInfo(params) {
  return request({
    baseURL: window.APP_GETEWAY.base,
    url: '/v1/shop/goods-shop-info',
    method: 'GET',
    params
  })
}

// 修改基础信息
export function updateBasicInfo(data) {
  return request({
    url: '/v1/goods/batch-operation/update-basic',
    method: 'POST',
    data
  })
}

// sku_id 获取供应商列表
export function getSKUSupplierList(data) {
  return request({
    url: '/v1/goods/sku/sku-supplier-list',
    method: 'POST',
    data
  })
}

// 获取SKU详情
export function getSKUDetails(data) {
  return request({
    url: '/v1/api/goods/sku/details',
    method: 'post',
    data
  })
}

// 批量修改品牌
export function updateBrand(data) {
  return request({
    url: '/v1/goods/batch-operation/update-brand',
    method: 'post',
    data
  })
}


